﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using ProducerBO;
namespace Producer
{
    public partial class SignUpPage : System.Web.UI.Page
    {
        PRODUCERR PRO = new PRODUCERR();
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void BP_SUBMIT_Click(object sender, EventArgs e)
        {
            PRO.P_ID = -99;
            PRO.P_NAME = TP_FNAME.Text + " " + TP_MNAME.Text +  " " + TP_LNAME.Text;
           
            if (RP_GENDER.SelectedIndex==0)
                 PRO.P_SEX = "Male";//RP_GENDER.SelectedValue.ToString();
            else
                PRO.P_SEX = "Female";//RP_GENDER.SelectedValue.ToString();

            PRO.P_ADDRESS =TP_ADDRESS.Text;

            PRO.P_EMAIL = TP_EMAILID.Text;
            PRO.P_PHONE = Convert.ToInt64(TP_PHONE.Text);
            PRO.P_UNAME = TP_UNAME.Text;
            PRO.P_PASS = TP_PASSWORD.Text;
            PRO.ISACTIVE = true;
            PRO.ISDELETED = false;
            PRO.SaveRecord();
            Response.Redirect("~/ProducerWelcome.aspx");
        }

       
    }
}
